package com.gxx.controller;


import com.gxx.entity.Good1;
import com.gxx.service.User1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gxx
 * @since 2022-12-04
 */
@RestController
@RequestMapping("/user1")
public class User1Controller {
    @Autowired
    private User1Service user1Service;

    @GetMapping("/getgood")
    public List<Good1> getGoods(int uid)
    {
        return user1Service.getGoodByUid(uid);
    }

}

